package cn.shop.core.dao;

import cn.shop.core.bean.UserInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/8/25.
 */
@Service
public interface UserDAO {
    public int add(UserInfo user);

    /**
     * 根据用户记录数
     * @param user
     * @return
     */
    public long getCount(UserInfo user);

    /**
     * 删除用户
     * @param user
     * @return
     */
    public void delete(UserInfo user);

    /**
     * 查询用户
     * @param user
     * @return
     */
    public List<UserInfo> getUserList(UserInfo user);
    public void updateUser(UserInfo user);

    /**
     * 根据用户名查找
     * @param user
     * @return
     */
    public UserInfo getUser(UserInfo user);
    public UserInfo userLogin(UserInfo user);
}

